package com.swsc.solarverse.service.forward;

import com.swsc.solarverse.common.mybatis.MybatisService;
import com.swsc.solarverse.dao.entity.forward.ForwardStringDataCurrentdayDO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-05-06
 */
public interface IForwardStringDataCurrentdayService extends MybatisService<ForwardStringDataCurrentdayDO> {
    void truncate();
    void truncateYesterday();
    void truncateBeforeYesterday();

    LocalDateTime maxDataTime();

    LocalDateTime maxDataTimeByOrgan(Integer organNo);

    LocalDateTime maxDataTimeByOrganAndTimeRange(Integer organNo, LocalDateTime dataTimeGe, LocalDateTime dataTimeLt);

    int insertIgnoreBatch(java.util.List<ForwardStringDataCurrentdayDO> list);

    int insertIgnoreBatchYesterday(java.util.List<ForwardStringDataCurrentdayDO> list);

    List<ForwardStringDataCurrentdayDO> listByOrganAndTimeRange(Integer organNo, LocalDateTime dataTimeGe, LocalDateTime dataTimeLt);

    void copyYesterdayData2BeforeYesterday(LocalDateTime start, LocalDateTime end);

    void copyCurrentdayData2Yesterday(LocalDateTime start, LocalDateTime end);
}
